package com.tax.service;

import com.tax.config.exception.ApiException;
import com.tax.config.response.Response;
import com.tax.dto.req.SmsCodeReq;

/**
 * FileName: ISmsService
 * Author:   duandehui
 * Date:     2023/3/4 18:09
 * Description: 短信service
 */
public interface ISmsService {
    /**
     * 输入手机号码获取验证码
     * @param smsCodeParam
     * @return
     */
    Response verificationCodeSend(SmsCodeReq smsCodeParam);

    /**
     * 验证登录的验证码是否正确
     * @param regCode
     * @param phoneNum
     */
    boolean verifyRegCode(String regCode, String phoneNum) throws ApiException;

    /**
     * 移除手机验证码
     * @param phoneNum
     */
    void removeRegCode(String phoneNum);
}
